﻿Shader "Custom/TestIndirect"
{
    Properties 
    {
         [HDR]_Color ("Main Color", Color) = (1,0,0,1)
        _MainTex ("Texture", 2DArray) = "" {}
    }
    
    SubShader
    {
        Tags{"RenderType" = "Opaque" "RenderPipeline" = "UniversalPipeline" "IgnoreProjector" = "True"}
        
        Pass
        {
            Tags{"LightMode" = "UniversalForward"}
            
            HLSLPROGRAM
            #pragma vertex vert
            #pragma fragment frag

            #pragma multi_compile _ LIGHTMAP_ON
            //#pragma multi_compile_instancing 不会启用PROCEDURAL_INSTANCING_ON，原因未知
            #pragma multi_compile _ INSTANCING_ON PROCEDURAL_INSTANCING_ON

            #include "./TestIndirectPass.hlsl"
            ENDHLSL
        }
    }
}